﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XT.Repository
{
    public class Uow : IUow
    {
        public DataContext Context { get; set; }
        public Uow(DataContext context)
        {
            Context = context;
        }

        public IAccountRepository AccountRepo { get { return new AccountRepository(Context); } }
        public IAccountTypeRepository AccountTypeRepo { get { return new AccountTypeRepository(Context); } }
        public IUtilityPlaceRepository UtilityPlaceRepo { get { return new UtilityPlaceRepository(Context); } }
        public IUtilityTypeRepository UtilityTypeRepo { get { return new UtilityTypeRepository(Context); } }
        public IAmentityRepository AmentityRepo { get { return new AmentityRepository(Context); } }
        public IAreaRepository AreaRepo { get { return new AreaRepository(Context); } }
        public ICityRepository CityRepo { get { return new CityRepository(Context); } }
        public IDistrictRepository DistrictRepo { get { return new DistrictRepository(Context); } }
        public IImageDataRepository ImageDataRepo { get { return new ImageDataRepository(Context); } }
        public IRoomReviewRepository RoomReviewRepo { get { return new RoomReviewRepository(Context); } }
        public IRoomListRepository RoomListRepo { get { return new RoomListRepository(Context); } }
        public IRoomRepository RoomRepo { get { return new RoomRepository(Context); } }
        public IRoomTypeRepository RoomTypeRepo { get { return new RoomTypeRepository(Context); } }
        public IStatusCommentRepository StatusCommentRepo { get { return new StatusCommentRepositoty(Context); } }
        public IStatusOnPageRepository StatusOnPageRepo { get { return new StatusOnPageRepository(Context); } }
    }
}
